export default {
    state: {
        defaultSelectedKeys: [],
        openKeys: []
    },
    mutations: {
        setSelectedKeys: (state, { defaultSelectedKeys, openKeys }) => {
            if (defaultSelectedKeys) {
                state.openKeys = [openKeys]
                state.defaultSelectedKeys = [defaultSelectedKeys]
            }
        },
        setopenKeys(state, openKeys) {
            state.openKeys = openKeys
        },
        setdefaultSelectedKeys(state, defaultSelectedKeys) {
            state.defaultSelectedKeys = defaultSelectedKeys.selectedKeys
        }
    },
    actions: {

    },
}